﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace mxplay
{
    public partial class FormMain : Form
    {
        public FormMain()
        {
            InitializeComponent();

//            dataGridView1.AutoGenerateColumns=true;
            
            pl.Add(new PlayListBindEntry());
            dataGridView1.DataSource=pl;
//            pl.RemoveAt(0);
        }

        private PlayListBind pl=new PlayListBind();
        
        private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormOptions opts=new FormOptions();
            opts.propertyGrid.SelectedObject = Program.BassCore;
            opts.Show();
        }

       
        

        
        void Button1Click(object sender, EventArgs e)
        {
        	if(openFileDialog1.ShowDialog()==DialogResult.OK)
        	{
        		pl.AddFile(openFileDialog1.FileName);
        	}
        }
        
        void Button2Click(object sender, EventArgs e)
        {
        	pl.RemoveAt(0);
        }
        
        void ColumnOptionsToolStripMenuItemClick(object sender, EventArgs e)
        {
        	PlayListBindOptions.ShowColumnEditor(this);
        }
    }
}
